<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML>
<html>
<head>
<title>登录页面</title>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<link href="${pageContext.request.contextPath}/css/mark.css"
	   type=text/css rel=stylesheet>
<meta content="MSHTML 6.00.2600.0" name=GENERATOR>
<style type="text/css">
body {
	background-image: url("./images/bk1.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}
</style>
</head>
<body>
<div ALIGN="center">
<table border="0" width="1140px" cellspacing="0" cellpadding="0"
                                                           id="table1">
	<tr>
		<td height="93"></td>
		<td></td>
	</tr>
	
	<tr>
   <td class="login_msg" width="400" align="center">
	 <!-- margin:0px auto; 控制当前标签居中 -->
	 <fieldset style="width: auto; margin: 0px auto;">
		  <legend>
		     <font style="font-size:15px" face="宋体" >
		          欢迎使用汽车维修管理系统
		     </font>
		  </legend> 
		<font color="red">
			 <%-- 提示信息--%>
			 <span id="message" >${msg}</span>
		</font>
		
	
		<%-- 提交后的位置：/WEB-INF/jsp/customer.jsp--%>
		<form action="<c:url value='/Customer/login.action'/>" 
			                 name="frm"      method="post" onsubmit="return verify()">
                      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />
          账&nbsp;号：<input id="name" type="text" name="cname" />
          <br /><br />
          密&nbsp;码：<input id="carcode" type="password" name="carcode" />
          <br /><br />
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <center><input type="submit" value="登录" /></center>
          
		 </form>
		
		 <li><a href='<c:url value="/Customer/GotoRegist.action"/>'> <i class="fa fa-sign-out fa-fw"></i>注册</a></li>
		 <li><a href='<c:url value="/Admin/GotoLogin.action"/>'> <i class="fa fa-sign-out fa-fw"></i>管理员登录</a></li>
	 </fieldset>
	</td>
	</tr>
</table>

</div>
 
<script type="text/javascript">
		 function verify(){
			var name=document.getElementById("name").value;
			var carcode=document.getElementById("carcode").value;
			
			 if(name==""||carcode==""){
				 document.getElementById("message").innerHTML="账号密码不能为空！";
				 
				 return  false;
			 }
			 return true;
		 }
		
</script>
</body>
</html>
